//
//  KKXuanShangRuleView.m
//  DoMi
//
//  Created by 康凯 on 2016/12/20.
//  Copyright © 2016年 kk. All rights reserved.
//

#import "KKXuanShangRuleView.h"

@implementation KKXuanShangRuleView

-(void)awakeFromNib{
    [super awakeFromNib];
    self.frame=CGRectMake(0, 147+64, screenWidth, screenHeight-147-45-64);
}

#pragma mark 弹框--展示
-(void)show{
    [appWindow addSubview:self];
    [UIView animateWithDuration:0.5 animations:^{

    }];
}
#pragma marm 弹框--消失
-(void)dismiss{
    [UIView animateWithDuration:0.5 animations:^{
        [UIView setAnimationCurve:UIViewAnimationCurveEaseIn];
    } completion:^(BOOL finished) {
        [self removeFromSuperview];
    }];
}
- (IBAction)backListClick:(id)sender {
    [self dismiss];
}

@end
